package com.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "对外释放本项目的接口说明")
@RestController
@RequestMapping("/my")
public class myController {

    @GetMapping("/hello")
    public String Hello(){
        System.out.println("进入hello方法");
        return "返回后端数据";
    }
    @GetMapping("/getU")
    @ApiImplicitParams({@ApiImplicitParam(name = "addressIP",value = "IP地址",example = "120.112.16",dataTypeClass= Integer.class),
            @ApiImplicitParam(name = "registerID",value = "登陆者ID",example = "admin",dataTypeClass = String.class)})

    public String GetUser(String registerID,Integer addressIP){
        System.out.println("IP地址"+addressIP);
        System.out.println("登陆者ID"+registerID);
        return "获取前端数据并返回后端数据";
    }
}
